<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" href="jquery/jquery-ui-1.8.19.custom.css" rel="stylesheet" />
<script type="text/javascript" src="jquery/jquery.min.js"></script>
<script type="text/javascript" src="jquery/jquery-ui-1.8.19.custom.min.js"></script>
<script src="script/commons.js" type="text/javascript"></script>
<script src="script/objects.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){$("input[type=button]").button();})
function setpass()
{
	var valid = false;
	var newPass = $("#newpass").val();
	var newPass2 = $("#newpass2").val();
	if(newPass==""){alert("请填写密码");$("#newpass").focus();return;}
	if(newPass2==""){alert("请确认密码");$("#newpass2").focus();return;}
	if(newPass2!=newPass){alert("密码与确认密码不同");$("#newpass2").focus();return;}
	var oldPass = $("#oldpass").val();
	$.post("forwardRepass.do",{newPass:newPass,oldPass:oldPass},
		function(m){
			if(m!="")alert(m);
			else{$("input[type=password]").val();alert("密码已修改");}
		}
	);
}
</script>
<style type="text/css">
	*{font-size:14px;}
	th{font-weight:normal;}
	table{margin-top:15%;margin-left:20%;}
	input{maring:0px 5px;}
</style>
</head>

<body>
<table width="400" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row">旧密码</th>
    <td>
      <input type="password" onkeydown="checkEnter()" name="oldpass" id="oldpass" />
    </td>
  </tr>
  <tr>
    <th scope="row">新密码</th>
    <td>
    	<input type="password" onkeydown="checkEnter()" name="newpass" id="newpass" />
    </td>
  </tr>
  <tr>
    <th scope="row">确认新密码</th>
    <td>
    	<input type="password" onkeydown="checkEnter()" name="newpass2" id="newpass2" />
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center">
    	<input type="button" value="提交" onclick="setpass()" />
    </td>
  </tr>
</table>

</body>
</html>
